filterNotNullToOption

fun <L, R> Either<L, R?>.filterNotNullToOption(): Option<Either<L, R>>

Returns Some containing the same Right if its value is not null. Otherwise returns None.

Return

Some containing the same Right if its value is not null. Otherwise returns None.

Since

1.3

fun <L, R> LeftProjection<L?, R>.filterNotNullToOption(): Option<Either<L, R>>

Returns Some containing the same Left if its value is not null. Otherwise returns None.

Return

Some containing the same Left if its value is not null. Otherwise returns None.

fun <L, R> RightProjection<L, R?>.filterNotNullToOption(): Option<Either<L, R>>

Returns Some containing the same Right if its value is not null. Otherwise returns None.

Return

Some containing the same Right if its value is not null. Otherwise returns None.